import request from '@/config/axios'
/**
 * 分页查询外出登记
 */
export const pageQuery = (params) => {
  return request.get({ url: '/elder/go-out/page-query', params })
}

/**
 * 新建外出登记
 */
export const create = (data) => {
  return request.post({ url: '/elder/go-out/create', data })
}

/**
 * 更新外出登记
 */
export const update = (data) => {
  return request.put({ url: '/elder/go-out/update', data })
}

/**
 * 获取单个外出登记
 */
export const get = (id) => {
  return request.get({ url: '/elder/go-out/get?id=' + id })
}

/**
 * 更新外出登记状态
 */
export const updateStatus = (data) => {
  return request.put({ url: '/elder/go-out/update-status', data })
}
